<div class="container-fluid" role="main">
    <form class="form-inline admin" action="<?php echo site_url('admin/admin/addContent') ?>" method="post">
        <input type="text" class="form-control" id="kp" name="content" placeholder="在这里添加知识点" required autofocus value="<?php echo set_value('content'); ?>">
            <?php echo form_error('content'); ?>
        <button type="submit" class="btn btn-default">添加</button>
    </form>
    <div class="panel panel-default">
        <div class="panel-body">
            <div class="table-responsive">
                <table id="table" data-toggle="table" data-height="460" data-url="<?php echo site_url('admin/admin/getdata/') ?>" data-sort-name="kid" data-sort-order="desc" data-click-to-select="true">
                    <thead>
                        <tr>
                            <th data-field="state" data-checkbox="true"></th>
                            <th data-field="kid" data-sortable="true">序号</th>
                            <th data-field="kpContent" data-sortable="true">知识点内容</th>
                            <th data-field="errorNumber" data-sortable="true">做错次数</th>
                            <th data-field="learningtime" data-sortable="true">上次学习时间</th>
                            <th data-field="displayNumber" data-sortable="true">总共学习次数</th>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
        <!-- end of .panel-body -->
    </div>
</div>
<!-- /container -->
<!-- 引入自定义js文件 -->
<link href="<?php echo base_url('application/views/js/table/bootstrap-table.css'); ?>" rel="stylesheet">
<script src="<?php echo base_url('application/views/js/table/bootstrap-table.js'); ?>"></script>
</body>

</html>
